package com.tanhua.model.vo;

import com.tanhua.model.db.Option;
import com.tanhua.model.db.Problem;
import lombok.Data;

/**
 * @author lamy
 * @version 1.0
 * @ClassName: OptionsVo
 * @date 2021-12-26 20:12:53
 */
@Data
public class OptionsVo {
    private String id;
    private String option;

    public static OptionsVo init(Option option) {
        OptionsVo optionsVo = new OptionsVo();

        optionsVo.setId(option.getId().toString());
        optionsVo.setOption(option.getOptions());

        return optionsVo;
    }
}
